package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserEducationBeanMapper;
import com.billing.model.dao.UserEducationBufferBeanMapper;
import com.billing.model.entity.TUserEducation;
import com.billing.model.entity.TUserEducationBuffer;
import com.billing.service.UserEducationBufferService;
import com.billing.service.UserEducationService;
@Service
public class UserEducationBufferServiceImpl implements UserEducationBufferService {
	@Resource
	private UserEducationBufferBeanMapper userEducationCopyBeanMapper; 
	public int insertTUserEducation(TUserEducationBuffer userEducation) {
		return userEducationCopyBeanMapper.insertTUserEducation(userEducation);
	}
	public TUserEducationBuffer selectUserEducationByUid(String userid) {
		return userEducationCopyBeanMapper.selectUserEducationByUid(userid);
	}
	public int updateUserEducation(TUserEducationBuffer userEducation) {
		return userEducationCopyBeanMapper.updateUserEducation(userEducation);
	}
	public TUserEducationBuffer selectUserEducationById(String id) {
		return userEducationCopyBeanMapper.selectUserEducationById(id);
	}
	public int updateUserEducationByUserid(TUserEducationBuffer userEducation) {
		return userEducationCopyBeanMapper.updateUserEducationByUserid(userEducation);
	}
	@Override
	public int insertTUserEducationByMain(TUserEducation userEducation) {
		return userEducationCopyBeanMapper.insertTUserEducationByMain(userEducation);
	}
	@Override
	public int updateUserEducationByMain(TUserEducation userEducation) {
		return userEducationCopyBeanMapper.updateUserEducationByMain(userEducation);
	}
	@Override
	public int updateUserEducationByUseridByMain(TUserEducation userEducation) {
		return userEducationCopyBeanMapper.updateUserEducationByUseridByMain(userEducation);
	}
}
